<?php /* Smarty version 2.6.12, created on 2008-10-30 10:53:03
         compiled from customer/main/subcategories.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'count', 'customer/main/subcategories.tpl', 21, false),array('modifier', 'escape', 'customer/main/subcategories.tpl', 24, false),array('modifier', 'lower', 'customer/main/subcategories.tpl', 27, false),)), $this); ?>
<?php func_load_lang($this, "customer/main/subcategories.tpl","lbl_products,lbl_categories,txt_no_products_in_cat"); ?><?php if ($this->_tpl_vars['active_modules']['Bestsellers'] != "" && $this->_tpl_vars['config']['Bestsellers']['bestsellers_menu'] != 'Y'): ?>
<p />
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "modules/Bestsellers/bestsellers.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  endif; ?>
<p />
<?php if ($this->_tpl_vars['active_modules']['Special_Offers']):  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "modules/Special_Offers/customer/category_offers_short_list.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  endif;  if (( $this->_tpl_vars['navigation_page'] == "" ) || ( $this->_tpl_vars['navigation_page'] == '1' )):  echo $this->_tpl_vars['current_category']['description']; ?>
<p /><?php endif;  ob_start();  $this->assign('tmp', '0');  $_from = $this->_tpl_vars['subcategories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['catid'] => $this->_tpl_vars['c']):
 if ($this->_tpl_vars['c']['category']):  $this->assign('tmp', '1');  endif;  endforeach; endif; unset($_from);  if ($this->_tpl_vars['subcategories']): ?>
<table cellspacing="5" width="100%">
<?php $_from = $this->_tpl_vars['subcategories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['subcat']):
?>
<tr>
<?php if ($this->_tpl_vars['tmp'] && $this->_tpl_vars['first_subcat'] != 'Y'): ?>
	<td valign="top" rowspan="<?php echo smarty_function_count(array('value' => $this->_tpl_vars['subcategories'],'print' => 'Y'), $this);?>
"><img src="<?php if ($this->_tpl_vars['current_category']['icon_url']):  echo $this->_tpl_vars['current_category']['icon_url'];  else:  echo $this->_tpl_vars['xcart_web_dir']; ?>
/image.php?id=<?php echo $this->_tpl_vars['cat']; ?>
&amp;type=C<?php endif; ?>" alt="" /></td>
<?php $this->assign('first_subcat', 'Y');  endif; ?>
	<td class="SubcatTitle"><a href="home.php?cat=<?php echo $this->_tpl_vars['subcat']['categoryid']; ?>
"><font class="ItemsList"><?php echo ((is_array($_tmp=$this->_tpl_vars['subcat']['category'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</font></a><br /></td>
	<td class="SubcatInfo"><?php if ($this->_tpl_vars['config']['Appearance']['count_products'] == 'Y'):  if ($this->_tpl_vars['subcat']['product_count']):  echo $this->_tpl_vars['subcat']['product_count']; ?>
 <?php echo $this->_tpl_vars['lng']['lbl_products']; ?>

<?php elseif ($this->_tpl_vars['subcat']['subcategory_count']):  echo $this->_tpl_vars['subcat']['subcategory_count']; ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['lng']['lbl_categories'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>

<?php endif; ?>
	<?php endif; ?></td>
</tr>
<?php endforeach; endif; unset($_from); ?>
</table>
<?php endif;  if ($this->_tpl_vars['tmp'] && $this->_tpl_vars['products'] != ""): ?>
<br clear="left" />
<hr size="1" noshade="noshade" />
<?php endif;  if ($this->_tpl_vars['products']):  if ($this->_tpl_vars['sort_fields']): ?>
<div align="right"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "main/search_sort_by.tpl", 'smarty_include_vars' => array('sort_fields' => $this->_tpl_vars['sort_fields'],'selected' => $this->_tpl_vars['search_prefilled']['sort_field'],'direction' => $this->_tpl_vars['search_prefilled']['sort_direction'],'url' => "home.php?cat=".($this->_tpl_vars['cat'])."&")));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></div>
<?php endif;  if ($this->_tpl_vars['total_pages'] > 2): ?>
<br />
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "customer/main/navigation.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  endif; ?>
<hr size="1" width="100%" />
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "customer/main/products.tpl", 'smarty_include_vars' => array('products' => $this->_tpl_vars['products'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  endif;  if ($this->_tpl_vars['products'] == "" && $this->_tpl_vars['tmp'] == '0'):  echo $this->_tpl_vars['lng']['txt_no_products_in_cat']; ?>

<?php endif;  $this->_smarty_vars['capture']['dialog'] = ob_get_contents(); ob_end_clean();  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "dialog.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['current_category']['category'],'content' => $this->_smarty_vars['capture']['dialog'],'extra' => 'width="100%"')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  if ($this->_tpl_vars['products'] == ""):  if ($this->_tpl_vars['f_products'] != ""): ?>
<p />
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "customer/main/featured.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  endif;  endif;  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "customer/main/navigation.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>